use serde::{Deserialize, Serialize};

use super::user::GetHubUserInfo;


// create table columns (  -- 评论表
//     id integer primary key not null,
//     user_id integer not null,     --关联用户表的id
//     articles_id integer not null, --关联文章的id
//     content varchar(256) not null, 
//     created_at TIMESTAMP NOT NULL DEFAULT CURRENT_DATE
// );
//


#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Comment {
    pub id: Option<u32>,
    pub user: Option<GetHubUserInfo>,
    pub articles_id: Option<u32>,
    pub content: String,
    pub created_at: Option<chrono::NaiveDate>,
}